{extend name="admininfo/admininfo" /}
{block name='main'}
<form class="form-horizontal" action="{:url('admin/Role/update')}" method='post' enctype="multipart/form-data">
    <input type="hidden" value="{$res[0]['id']}" name='rid'>

    <div class="modal-body">

        <table class="table table-bordered" >
              <tr>
                  <td>角色名</td>
                  <td><input type="text" name='name' value='{$res[0]["role"]}'></td>
              </tr>
              <tr>
                  <td>角色权限</td>
                  <td>
                    {foreach $list as $k => $v} 
                
                    <input type="checkbox" {if in_array($v['id'],$dat)} checked {/if}  value='{$v["id"]}' name="{$k}" > {$v['authorization']}
                    
                    {/foreach}
                  </td>
              </tr>
              <tr>
                  <td>
                      <input type="submit">
                  </td>
              </tr>
        </form>
   
        
        </table>
    </div>



    {/block}

